class localaccounts::sudoers inherits localaccounts {
  #  sudo::conf { 'yanxf':
  #    priority => 10,
  #    content  => "yanxf   ALL= (ALL)      NOPASSWD:       ALL\n",
  #  }
  #  sudo::conf { 'kanbw':
  #    priority => 10,
  #    content  => "kanbw   ALL= (ALL)      NOPASSWD:       ALL\n",
  #  }
  #  sudo::conf { 'nagios':
  #    priority => 15,
  #    source => 'puppet:///modules/localaccounts/nagios', 
  #  }
  #  sudo::conf { 'sj':
  #    priority => 10,
  #    content  => "sj   ALL= (ALL)      NOPASSWD:       ALL\n",
  #  }
  #  sudo::conf { 'dgh':
  #    priority => 10,
  #    content  => "dgh   ALL= (ALL)      NOPASSWD:       ALL\n",
  #  }
  #if $sudo_users { 
  #  each($sudo_users) |$value| { 
  #    notice $value
      #sudo::conf { $value:
      #  priority => 10,
      #  content  => "$value   ALL= (ALL)      NOPASSWD:       ALL\n",
  #    }
  #  }
  #}
#define mySudo {
#    sudo::conf { $name:
#      priority => 10,
#      content  => "$name   ALL= (ALL)      NOPASSWD:       ALL\n",
#    }
#}
  #base::mySudo { $sudo_users: }
  $admins_alias = join($sudo_users,",")

  sudo::conf { 'admins':
    priority  => 10,
    template  => "${module_name}/admins.erb",
  }
}
